package com.albaba.designpattern.adapter.text_002;

import com.albaba.designpattern.adapter.text_001.SDCard;
import com.albaba.designpattern.adapter.text_001.TFCard;

/**
 * @author zx
 * @version 1.0
 * @description TODO
 * @date 2025/2/20 22:05
 */
public class SDAdapterTF2 implements SDCard {

    private TFCard tfCard;

    public SDAdapterTF2(TFCard tfCard) {
        this.tfCard = tfCard;
    }

    @Override
    public String readSD() {
        return tfCard.readTF();
    }

    @Override
    public void writeSD(String msg) {
        tfCard.writeTF(msg);
    }
}
